package com.itdachang.devops.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    private String str = "hello world....";

    // ResponseBean
    @GetMapping("/hello")
    public String hello (){
        int i = 1/0;
        int j = 1/0;
        return str;
    }


    public String hello2 (){
        int i = 1/0;
        int j = 1/0;
        System.out.println(i+j);
        return str;
    }



}
